package br.requisiteworks.util.validacao;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class NomeValidator implements ConstraintValidator<Nome, String> {

	public void initialize(Nome constraintAnnotation) {

	}

	@Override
	public boolean isValid(String value, ConstraintValidatorContext context) {
		return value != null && !value.trim().isEmpty()
				&& value.length() <= 128;
	}

}
